 <#include "../pc/header.html">
 
 
<style>
	#codeArea {
	width:320px;
	height:400px;
	margin:100px auto;
	background:#fff;
	padding:20px;
	border-radius:3px;
	}
	#codeImg{
	 border:1px solid #aaa;
	 border-radius:2px;
	}
	#title{
	width:100%;
	line-height:30px;
	text-align:center;
	}
	#content{
	    padding-left: 30px;
	    color:black;
	}
	#content p{
	   margin:3px;
	}
</style>
<script   >
$(function(){
	
	// 根据配置内容加载右侧菜单
	$(".bodyLayout").css({
		height : $(window).height() < 668 ? 668 : $(window).height() - 10,
		width : $(window).width() < 1580 ? 1580 : $(window).width()
	})
		$(".mcontent").height(
			$(".bodyLayout").height() - $(".header").height()
					- $(".bottom").height());

function  checkForResult(){
	
	 
		   function ajck(){
			   
		  $.getJSON("${s.base}/checkForResult",    {time:${time!0}} ,  function (data) {
				//显示保存结果        
				if(data.success==true){
					 location.href = "${s.base}/i/pcmain/"+data.province ;//location.href实现客户端页面的跳转
				}
				else{
					 checkForResult(); 
				}
				
				 if(data.getcodeOk==true) {
						$("#content:first").html("扫码成功!请确认登录！");
						
					}
			  });  
				  
	 
	   }
	   setTimeout(ajck,2000);
	    
}
checkForResult();
	    
});    
</script>



</div>
 <div class="mcontent">
		<!-- 条码区域 -->
<div id="codeArea">
  <div id="title"> 登录</div>
  <img id="codeImg" alt="登陆二维码" src="data:image/png;base64,${img!}">
  <div id="content">
     <p>请用微信扫描二维码登录</p>
     <p>输电线路走廊可视化监控系统</p>
  </div>
 </div> 
 <!-- end codearea -->
 </div>
  <#include "../pc/flooder.html">

